package one.stand.mapper;

import one.stand.entity.WxNoticeEntity;
import one.stand.model.UserModel;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * @author Administrator
 */
public interface UserMapper {

    int deleteByPrimaryKey(Integer userId);

    int insertSelective(UserModel record);

    UserModel select(UserModel record);

    UserModel selectByPrimaryKey(Integer userId);

    String selectNickeName(String[] ids);

    int updateByPrimaryKeySelective(UserModel record);

    int formIdCount(Map<String,String> map);

    int addFormId(Map<String,String> map);

    int delFormId(String formId);

    int delUserFormId(Map<String,String> map);

    /**
     * 发送给user端的客戶
     *
     * @param sendUserId 发送人userId
     * @param receiveUserId 接收人userId
     * @return
     */
    WxNoticeEntity getSendTemplateInfo(@Param("sendUserId") Integer sendUserId, @Param("receiveUserId") Integer receiveUserId, @Param("type") Integer type);
}